package result;


import com.github.pagehelper.PageInfo;
import model.Person;

import java.io.Serializable;
import java.util.List;

/**
 * Created by walter on 2016/3/29.
 */
public class Result<T> implements Serializable {
    private String message;
    private Integer code;
    private Person person;
    private PageInfo<Person> pageInfo;
    private List<Person> list;
    private Object obj;

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    public List<Person> getList() {
        return list;
    }

    public void setList(List<Person> list) {
        this.list = list;
    }

    public PageInfo<Person> getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo<Person> pageInfo) {
        this.pageInfo = pageInfo;
    }

    public Result(){
        super();
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
